package pessoas.view;

import javax.swing.JMenu;
import javax.swing.JMenuItem;
import org.mdidesktoppane.MDIDeskTopPane;

public class MainView extends javax.swing.JFrame {

    

    /** Creates new form MainView */
    public MainView() {
        initComponents();
        this.setLocationRelativeTo(this.getParent());
        
    }

    public JMenuItem getBtnExportar() {
        return btnExportar;
    }

    public JMenuItem getBtnGrafico() {
        return btnGrafico;
    }   
    
    public JMenuItem getBtnLog() {
        return btnLog;
    }
   
    public JMenuItem getBtnUsuario() {
        return btnUsuario;
    }
    
    
    public JMenuItem getBtnContatosInvalidos() {
        return btnContatosInvalidos;
    }

    
    public JMenuItem getBtnAdicionar() {
        return btnAdicionar;
    }

    public JMenuItem getBtnImportarcao() {
        return btnImportarcao;
    }

    public JMenuItem getBtnListarPessoa() {
        return btnListarPessoa;
    }

    public JMenuItem getBtnSair() {
        return btnSair;
    }

    public MDIDeskTopPane getDesktop() {
        return desktop;
    }
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        desktop = new org.mdidesktoppane.MDIDeskTopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu2 = new javax.swing.JMenu();
        btnUsuario = new javax.swing.JMenuItem();
        btnImportarcao = new javax.swing.JMenuItem();
        btnExportar = new javax.swing.JMenuItem();
        btnSair = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        btnAdicionar = new javax.swing.JMenuItem();
        btnListarPessoa = new javax.swing.JMenuItem();
        btnContatosInvalidos = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        btnGrafico = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        btnLog = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Cadastro de pessoas");

        jMenu2.setText("Arquivo");

        btnUsuario.setText("Usuários");
        jMenu2.add(btnUsuario);

        btnImportarcao.setText("Importação");
        btnImportarcao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImportarcaoActionPerformed(evt);
            }
        });
        jMenu2.add(btnImportarcao);

        btnExportar.setText("Exportar");
        jMenu2.add(btnExportar);

        btnSair.setText("Sair");
        btnSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSairActionPerformed(evt);
            }
        });
        jMenu2.add(btnSair);

        jMenuBar1.add(jMenu2);

        jMenu1.setText("Contatos");
        jMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu1ActionPerformed(evt);
            }
        });

        btnAdicionar.setText("Adicionar");
        btnAdicionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAdicionarActionPerformed(evt);
            }
        });
        jMenu1.add(btnAdicionar);

        btnListarPessoa.setText("Listar ");
        btnListarPessoa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListarPessoaActionPerformed(evt);
            }
        });
        jMenu1.add(btnListarPessoa);

        btnContatosInvalidos.setText("Invalidos");
        jMenu1.add(btnContatosInvalidos);

        jMenuBar1.add(jMenu1);

        jMenu4.setText("Estatísticas");

        btnGrafico.setText("Graficos");
        jMenu4.add(btnGrafico);

        jMenuBar1.add(jMenu4);

        jMenu3.setText("Configurações");

        btnLog.setText("Configurações");
        jMenu3.add(btnLog);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktop, javax.swing.GroupLayout.DEFAULT_SIZE, 1023, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktop, javax.swing.GroupLayout.DEFAULT_SIZE, 633, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenu1ActionPerformed

    private void btnAdicionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAdicionarActionPerformed
        
    }//GEN-LAST:event_btnAdicionarActionPerformed

    private void btnListarPessoaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListarPessoaActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btnListarPessoaActionPerformed

    private void btnSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSairActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btnSairActionPerformed

    private void btnImportarcaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImportarcaoActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btnImportarcaoActionPerformed

    /**
     * @param args the command line arguments
     */
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem btnAdicionar;
    private javax.swing.JMenuItem btnContatosInvalidos;
    private javax.swing.JMenuItem btnExportar;
    private javax.swing.JMenuItem btnGrafico;
    private javax.swing.JMenuItem btnImportarcao;
    private javax.swing.JMenuItem btnListarPessoa;
    private javax.swing.JMenuItem btnLog;
    private javax.swing.JMenuItem btnSair;
    private javax.swing.JMenuItem btnUsuario;
    private org.mdidesktoppane.MDIDeskTopPane desktop;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    // End of variables declaration//GEN-END:variables
}
